<?php
namespace app\api\validate;
/** 
* Document
*/
class OrderPlace extends Base {

    protected $rule = [
        'product_id' => 'require|isPosInt',
        'quantity' => 'require|isPosInt'
    ];
    protected $message = [
        'product_id' => '商品id只能为正整数',
        'quantity' => '购买数量必须为正整数'
    ];
}